<?php
// no direct access

defined( '_JEXEC' ) or die( 'Restricted access' );

jimport( 'joomla.application.component.view');


class SimplelistingViewFavourite extends JView
{
    function __construct( $config = array())
	{
 	 global $context;
	 $context = 'simplelisting.favourite.';

 	 parent::__construct( $config );
	}

    function display($tpl = null)
    {
            global $mainframe, $context;
            $model =& $this->getModel();

            $document = & JFactory::getDocument();
            $params = &JComponentHelper::getParams( 'com_simplelisting');
            $select_theme     = $params->get('select_theme', '');

            $uri	=& JFactory::getURI();
            $pathway =& $mainframe->getPathWay();

            $items      =& $this->get('Data');
            $total	=& $this->get('Total');

            $this->assignRef('params',          $params) ;
            $this->assignRef('items',		$items);
            $this->assignRef('request_url',	$uri->toString());
             $this->assignRef('select_theme',        $select_theme);

		//DEVNOTE:call parent display
    parent::display($tpl);
  }
 
   function FavShow()
	{
        $this->assignRef('request_url',	$uri->toString());
        parent::display();
	}

}
?>
